import Vue from 'vue'
import vueRouter from 'vue-router'

Vue.use(vueRouter)

const router = new vueRouter({
  routes: [
    {
      path: '/',
      redirect: '/login'
    },
    {
      path: '/home',
      name: 'home',
      component: () => import('../pages/home.vue')
    },
    {
      path: '/classify',
      name: 'classify',
      component: () => import('../pages/classify.vue')
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../pages/login.vue')
    },
    {
      path: '/myself',
      name: 'myself',
      component: () => import('../pages/myself.vue')
    },
    {
      path: '/shopCar',
      name: 'shopCar',
      component: () => import('../pages/shopCar.vue')
    },
    {
      path: '/goodsDetail',
      name: 'goodsDetail',
      component: () => import('../pages/goodsDetail.vue')
    },
    {
      path: '/goodsInfoDetail',
      name: 'goodsInfoDetail',
      component: () => import('../pages/goodsInfoDetail.vue')
    }
  ]
})

export default router
